package cn.itsuorce.mapper;

import cn.itsuorce.domain.User;
import cn.itsuorce.query.UserQuery;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper extends BaseMapper<User,UserQuery>{
    /**
     * 通过手机号查询User
     * @param phone
     * @return
     */
    User findByPhone(String phone);



    /**
     * 用户登录
     * @param username
     * @return
     */
    User login(String username);
}
